package com.yuxuan.provider;

import com.yuxuan.service.RpcService;
import org.apache.servicecomb.provider.pojo.RpcSchema;
import org.apache.servicecomb.provider.rest.common.RestSchema;

//@RestSchema(schemaId = "helloRpcSrv")
@RpcSchema(schemaId = "helloRpcSrv")
public class RpcProviderServiceImpl implements RpcService {
    @Override
    public String sayRpc(String name) {
        return "name " + name;
    }

    @Override
    public String strToUpper(String name) {
        return name == null ? "" : name.toUpperCase();
    }
}
